package com.wanqing.community.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 组织性质
 * **/
public class OrgNature {
	
	//分公司
	public static final int SUBCOMPANY = 10;
	
	//其他
	public static final int DEPARTMENT = 20;
	
	public static String parse(int key)
	{
		switch(key)
		{
			case SUBCOMPANY:
				return  "公司";
			case DEPARTMENT:
				return  "部门";
		}
		return "";
	}
	
	public static Map<Object, Object> map()
	{
		Map<Object, Object> map = new HashMap<Object, Object>();
		
		map.put(SUBCOMPANY, parse(SUBCOMPANY));
		map.put(DEPARTMENT, parse(DEPARTMENT));
		return map;
	}
}
